<?php
class Bookshelf_Center extends TdPage {
	
	public $bookshelf;
	
	function __construct($template) {
		parent::__construct("", $template);
		
		if (isset($_SESSION["user"])) {
			$user = $_SESSION["user"];
		
			$this->id_usr = $user->getId();			
		
		} else {
			// do something			
		}
		
		$this->doInit();
	}
	
	
	function doInit() {		
		
		$bookshelf = new cl_Bookshelf("id_user", $this->id_usr);
		$this->bookshelf = $bookshelf->getBookshelf(5);
		
	}
}
?>